package pers.sen.health.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import pers.sen.health.po.Order;

/**
 * @author Jason
 * @version 1.0.0
 * @date 2020/11/5 9:05
 * @Description TODO
 */
public interface OrderMapper extends BaseMapper<Order> {
    @Select("select count(1) from t_order where SETMEAL_ID = #{parseInt} and ORDERDATE= #{orderdate} and MEMBER_ID = #{id}")
    int findOrderBySIdAndOrderDateAndMId(@Param("parseInt") int parseInt, @Param("orderdate") String orderdate, @Param("id") Integer id);
}
